package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.dto.ActStatisticalDataDto;
import cn.com.duiba.millionaire.center.api.remoteservice.RemoteActStatisticalDataService;
import cn.com.duiba.millionaire.center.biz.service.ActStatisticalDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sunchangji on 2018/3/17.
 */
@RestController
public class RemoteActStatisticalDataServiceImpl implements RemoteActStatisticalDataService {

    @Autowired
    private ActStatisticalDataService actStatisticalDataService;

    @Override
    public ActStatisticalDataDto getStatisticalDataByActId(Long activityId) {
        return actStatisticalDataService.getStatisticalDataByActId(activityId);
    }


    @Override
    public Long getOnlineNum(Long activityId) {
        return actStatisticalDataService.getOnlineNum(activityId);
    }
}
